<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="字典名称">
            </div>
            <a class="btn btn-default" @click="query">查询</a>
			<#if shiro.hasPermission("styj1:b12noise:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("styj1:b12noise:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("styj1:b12noise:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">声环境功能区名称</div>
                        <div class="col-sm-10">
                            <input type="text" name="noiseDistrict" id="noiseDistrict" class="form-control" v-model="b12Noise.noiseDistrict" placeholder="声环境功能区名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">区域面积</div>
                        <div class="col-sm-10">
                            <input type="text" name="districtArea" id="districtArea" class="form-control" v-model="b12Noise.districtArea" placeholder="区域面积"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">昼夜噪声测定值</div>
                        <div class="col-sm-10">
                            <input type="text" name="noiseValue" id="noiseValue" class="form-control" v-model="b12Noise.noiseValue" placeholder="昼夜噪声测定值"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">人均淡水资源拥有量</div>
                        <div class="col-sm-10">
                            <input type="text" name="perWaterOwner" id="perWaterOwner" class="form-control" v-model="b12Noise.perWaterOwner" placeholder="人均淡水资源拥有量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">噪音达标率</div>
                        <div class="col-sm-10">
                            <input type="text" name="noiseRate" id="noiseRate" class="form-control" v-model="b12Noise.noiseRate" placeholder="噪音达标率"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">录入人</div>
                        <div class="col-sm-10">
                            <input type="text" name="creatby" id="creatby" class="form-control" v-model="b12Noise.creatby" placeholder="录入人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">录入时间</div>
                        <div class="col-sm-10">
                            <input type="text" name="creatat" id="creatat" class="form-control" v-model="b12Noise.creatat" placeholder="录入时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">上级部门</div>
                        <div class="col-sm-10">
                            <input type="text" name="parentCode" id="parentCode" class="form-control" v-model="b12Noise.parentCode" placeholder="上级部门"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">类型编码</div>
                        <div class="col-sm-10">
                            <input type="text" name="typeCode" id="typeCode" class="form-control" v-model="b12Noise.typeCode" placeholder="类型编码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">更新时间</div>
                        <div class="col-sm-10">
                            <input type="text" name="updateTime" id="updateTime" class="form-control" v-model="b12Noise.updateTime" placeholder="更新时间"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label">数据文件上传</div>
                <div class="col-sm-10">
                    <input type="file" name="file" id="form_file" multiple="multiple" accept=".pdf,.xls,.xlsx,.docx,.doc" class="form-control"
                           placeholder="原始数据文件"/>
                    <input type="text" id="form_file_text" class="form-control" style="display :none" v-model="b12Noise.filepath" placeholder="原始数据文件"/>
                </div>

            </div>

            <div class="form-group" v-if="flag">
                <div class="col-sm-2 control-label">已上传文件</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="uploadfilename"  id="uploadfilename"  v-model="b12Noise.filepath" placeholder=""/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/libs/bootstrapValidator.min.js"></script>
<script src="${request.contextPath}/statics/libs/zh_CN.js"></script>
<script src="${request.contextPath}/statics/libs/fileinput.min.js"></script>
<script src="${request.contextPath}/statics/libs/zh.js"></script>
<script src="${request.contextPath}/statics/js/modules/styj1/b12noise.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/libs/uploadfile.js"></script>
</body>
</html>